package com.kly.sc.api.application.enums;

/**
 * 配置类型
 * @author linqu
 */
public enum ConfigsType {

    // notices: value值对应nacos配置里的key，不能单边修改， 否则无法正常取数

    customerService(1, "customerService", "客户服务"),

    agreement(2, "agreement", "用户相关协议"),

    pp_pv_showUnable(3, "showUnable", "显示用户的pp&pv"),

    loginChannel(4, "loginChannel", "登陆方式"),

    flashchat_message(5, "flashchat send message", "flash chat 发送文案"),

    homepage_bgm(6, "homepage bgm", "首页背影音乐"),

    order_snapshot_log(6, "Order Snapshot Log", "订单系统开关"),

    ;

    private final Integer type;

    private final String Value;

    private final String description;


    ConfigsType(Integer type, String value, String description) {
        this.type = type;
        Value = value;
        this.description = description;
    }

    public Integer getType() {
        return type;
    }

    public String getValue() {
        return Value;
    }

    public String getDescription() {
        return description;
    }


    public static ConfigsType fromType(Integer type) {
        for (ConfigsType userStatus : values()) {
            if (userStatus.getType().equals(type)) {
                return userStatus;
            }
        }
        return null;
    }
}
